<?php
class blog_post_delete extends SClass {

    public function process() {
        try {
            ServiceUtils::GetFactory()->getBlogService()->deletePoost(
                $this->getArgument('id'));
            $this->assign('message', 'ok');
        } catch (Exception $e) {
            $this->assign('message', 'error');
        }
    }

}